/* 
 * File:   fileHandling.h
 * Author: PprrATeekK
 *
 * Created on October 25, 2012, 10:21 PM
 */


/*/////////////////////////////////////////////////////////////////////////////
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~//Function Prototypes//~~~~~~~~~~~~~~~~~~~~~~~~~~~
////////////////////////////////////////////////////////////////////////////*/

int creatVFS(int fileSystemSize, char * fileSysName);
int mount(char* fileSysName);
int unMount(char* fileSysName);
// mode add=0, delete=1, update=2; offset is offset of buffer where file is added, 0 for dir;
//size is file size, 0 for dir; fileType is dir(d) or file(f); fileName is common for DirName or FileName
long updateFileDescriptor(char* destDirPath, char* fileName, char fileType,int size,long offset);
int updateFreeBlockList();
int updateBuffer(int offset, char* dataFilePath);
int setBlockFree(long offset,int mode);
long setFileDescriptorFree(long offset);


